package sls

type GetLogRequest struct {
	From       int64                  `json:"from"` // unix time, eg time.Now().Unix() - 900
	To         int64                  `json:"to"`   // unix time, eg time.Now().Unix()
	Lines      int64                  `json:"line"` // max 100; offset, lines and reverse is ignored when use SQL in query
	Offset     int64                  `json:"offset"`
	Reverse    bool                   `json:"reverse"`
	QueryMap   map[string]interface{} `json:"queryMap"` // 查询字段,使用需先找运维建立索引
	Query      string                 `json:"query"`    // 默认不用,传入表示自主查询
	PowerSQL   bool                   `json:"powerSql"` // 默认不用,传入表示自主查询
	FromNsPart int32                  `json:"fromNs"`
	ToNsPart   int32                  `json:"toNs"`
}
